<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="./opesoft/js/mootools.js"></script>
<script type="text/javascript" src="./opesoft/js/frame.js"></script>
<script type="text/javascript" src="./opesoft/js/ajax.js"></script>
<script type="text/javascript" src="./calendar/calendarAction.ojs"></script>

<link rel="stylesheet" href="./style.css" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!--
var changeConfig=false;  //是否改变了配置

function setDateTitle(value)
{
	$("dateTitle").innerHTML=value;
}

function openWeekFrame()
{
	$('weekTools').style.display='';
	$('monthTools').style.display='none';
	$('configTools').style.display='none';

	top.openFrame(1);
}

function openMonthFrame()
{
	$('weekTools').style.display='none';
	$('monthTools').style.display='';
	$('configTools').style.display='none';

	top.openFrame(2);

	//如果配置改变了，重新加载所有的内容
	if(changeConfig)
	{
		changeConfig=false;
		top.configFrame.saveCookies();
		top.monthFrame.reload();
	}
}

function openConfigFrame()
{
	$('weekTools').style.display='none';
	$('monthTools').style.display='none';
	$('configTools').style.display='';

	top.openFrame(3);
}

initEvents.push("parent.monthFrame.location='month.htm'");
//-->
</SCRIPT>

<title>Day</title>
</head>
<body onload="$init();" topmargin="0" leftmargin="0" bgcolor="#FFFFCC">

<TABLE width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD id="dateTitle" width="100"></TD>
	<TD valign="center" align="left">

		<TABLE border="0" cellpadding="0" cellspacing="0">
		<TR>
			<TD id="weekTools" style="display:none;">
				<input type="button" value="转到：月界面" onclick="openMonthFrame()">
			</TD>
		</TR>
		<TR>
			<TD id="monthTools">
				<input type="button" value="上一月" onclick="top.monthFrame.lastMonth()">
				<input type="button" value="下一月" onclick="top.monthFrame.nextMonth()">
				<input type="button" value="刷新" onclick="top.monthFrame.reload()">
				<input type="button" value="转到：周界面" onclick="openWeekFrame()">
				<input type="button" value="转到：配置界面" onclick="openConfigFrame()">
				<input type="button" value="测试" onclick="alert(document.cookie)">				
			</TD>
		</TR>
		<TR>
			<TD id="configTools" style="display:none;">
				<!-- input type="button" value="Save" onclick="top.configFrame.saveCookies()" -->
				<input type="button" value="转到：月界面" onclick="openMonthFrame()">
				<input type="button" value="显示Cookies" onclick="alert(document.cookie)">
				<input type="button" value="清空Cookies" onclick="document.cookie=null">
				<!-- input type="button" value="Cookie" onclick="alert(document.cookie)" -->
			</TD>
		</TR>
		</TABLE>
	
	</TD>
	<TD align="right">My Daily</TD>
</TR>
</TABLE>



</body>
</html>